#include <fstream>

const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};

int main()
{
	std::ifstream input("in.txt");
	std::ofstream output("out.txt");
	int n;
	input >> n;
	int tx = 0;
	int ty = 0;
	int v = 3;
	for (int i = 1; i <= n; i++)
	{
		tx += dx[v] * (i / 2);
		ty += dy[v] * (i / 2);
		output << tx << ' ' << ty << '\n';
		v = (v + 1) % 4;
	}
	return 0;
}